package org.hepeng.hope.dao

import org.hepeng.hope.CornerstoneApplicationTests
import org.hepeng.hope.entity.UIResources
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.test.context.ActiveProfiles


@ActiveProfiles(profiles = ["dev"])
internal class UIResourcesDAOTest : CornerstoneApplicationTests() {

    @Autowired lateinit var dao: UIResourcesDAO

    @Test fun insertTest() {

        dao.save(UIResources(parentId = 0 , order = 1 , authorityId = 1 ,
            uiName = "Account数据列表" , type = "menu" , url = "https://example.com/account-list" , requestMethod = "GET" ,
            desc = "XXXX").apply {
            createTime = System.currentTimeMillis()
            deleteFlag = false
        })
    }
}